<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
	<title>Blog</title>
	<link href="<?php echo base_url();?>/public/css/bootstrap.min.css" rel="stylesheet">
  <link href="<?php echo base_url();?>/public/css/bootstrap-theme.min.css" rel="stylesheet">
  <link href="<?php echo base_url();?>/public/css/style.css" rel="stylesheet">

 
</head>
<body>
<?php
$this->load->view("header")
?>
<img id="center_img" src="<?php echo base_url();?>/public/img/101.jpg" />
<hr/>
<div class="container">

<div class="row">
  <div class="col-md-8">
    <?php foreach($articles as $ab) {?>
      <div class="item clearfix " >

         <div class="item_title" >
           <a href="<?php echo site_url("Article/view/".$ab->id); ?>"><?php echo $ab->title ?></a>
           <span class="pull-right" ><?php echo $ab->view ?>次浏览</span>
         </div>
          <div class="item_body" >
              <img  class="thumbnail" src="<?php echo base_url().'public/'.$ab->img ?>" />
               <p><?php echo $ab->desc ?></p>
                
               <p class="item_time"><i class="glyphicon glyphicon-time"></i><?php echo date('Y-m-d H:i:s',$ab->create_time) ?></p>
               <a href="<?php echo site_url("Article/view/".$ab->id); ?>"  class="btn btn-success item-viewall">阅读全文>></a>
         </div>
       </div>
    <hr/>
     <?php } ?>
   </div>
<div class="col-xs-6 col-md-4" >
<iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=55" style="border:solid 1px #7ec8ea" width="255" height="294" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

</div>
</body>
</html>